package com.ss.pj.sc10.service.feign.fallback;

import com.ss.pj.sc01.pojo.User;
import com.ss.pj.sc01.vo.JsonResult;
import com.ss.pj.sc10.service.feign.UserFeignService;
import org.springframework.stereotype.Component;

/**
 * @author 叁昇
 * @create 2020-11-24-18:33
 */
@Component
public class UserFeignServiceFB implements UserFeignService {
    @Override
    public JsonResult<User> getUser(Integer userId) {
        return JsonResult.err("无法获取用户信息");
    }

    @Override
    public JsonResult addScore(Integer userId, Integer score) {
        return JsonResult.err("无法增加用户积分");
    }
}
